home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / util / cli / DayMove.lha / DayMove.readme < prev    next >
Encoding:
Text File  |  1999-11-26  |  3.8 KB  |  95 lines

  1. Short:    DayMove 1.25 - Move files (+/-)x days old
  2. Author:   jthorsen@iname.com
  3. Uploader: jthorsen@iname.com
  4. Type:     util/cli
  5. Replaces: util/cli/DayMove.lha
  6. Version:  1.25
  7.  
  8.  
  9. DayMove is email-ware, which means that if you like it I would really like to receive a mail from 
  10. you telling me so.
  11. DayMove is just a small util that will let you move -x days old files from one directory to another.
  12.  
  13. USAGE:
  14. DayMove <number of days> <source> <dest> [OLDER] [LIST] [QUIET] [TIME=<n>] [ALL]
  15.  
  16. NUMBER_OF_DAYS - How many days old files to move
  17. SOURCE_DIR     - Source-dir
  18. DEST_DIR       - Dest-dir
  19. OLDER          - move only older than x-days old files, move newer is default.
  20. LIST           - Do not move files, only list them.
  21. QUIET          - Do not ask questions, this is smart to use in scripts where 
  22.                  you don't want the program to wait for your response.
  23. TIME           - Hours past midnight                 
  24. ALL            - Check all subdirs.
  25.  
  26. examples:
  27. ---------------------------------------------------------------------------------------------
  28.  
  29. daymove 0 store:tmp/ BBS:upload/ ;This will move todays files from store:tmp/ to BBS:upload/
  30.  
  31. daymove 50 store3:tmp/ ram: OLDER LIST ;This will list files in store3:tmp/ that are 
  32.                                         older than 50 days. It can be quite smart to
  33.                                         use the LIST switch to display the affected files
  34.                                         before you actually start moving them, and then
  35.                                         afterwards start daymove without the LIST switch
  36.                                         to actually move the files.
  37.                                         Even if the dest-dir is not used in list-mode, a valid
  38.                                         dest-dir has to be passed as an argument, because of the 
  39.                                         argument parsing.
  40.  
  41.  
  42. daymove 0 ram: ram:recent/ time=5  ;Move files that were created after 05:00 today
  43.  
  44. daymove 3 ram: ram:old/ time=9 older ;Move files that were created before 09:00, 3 days ago
  45.  
  46. ---------------------------------------------------------------------------------------------
  47.  
  48. This should be quite simple to figure out I guess, but if you are stuck feel free to 
  49. send me a mail.
  50.  
  51. DayMove is part of a serie of smart little tools. You should also check out the
  52. following utils released by me (in aminet/util/cli/):
  53.  
  54. DayCopy
  55. DayDelete
  56. DayList
  57. SizeCopy
  58. SizeDelete
  59. SizeMove
  60. SizeList
  61.  
  62.  
  63. Version History:
  64.  
  65. 1.25 Fixed a bug in the routine that was checking if the file was copied correctly. 
  66.      Thanks to Fredrik Ismyren for reporting this.
  67.  
  68. 1.24 Will now skip files when the filedate is in the future.
  69.      Fixed a bug when using the ALL argument
  70.  
  71. 1.23 Fixed a bug in the exit-routine.
  72.  
  73. 1.22 Added the 'ALL' argument.
  74.  
  75. 1.21 Now uses raw-mode for input, so the input will not be put in the CON's history.
  76.      Reported by Stefan Schulz
  77.  
  78. 1.2  Fixed a memory-allocation-bug, that caused daymove to crash.
  79.      TIME argument added, suggested by Fredrik Ismyren. 
  80.  
  81. 1.11 Fixed a bug in the routine testing if the file was copied ok.
  82.      The destination file was deleted, instead of the source file(!) 
  83.      In other words v1.1 would not do anything usefull ;)
  84.  
  85. 1.1  DayMove will now preserve creation-date/filecomment and protection when moving the file.
  86.      But if you choose to un-protect the file from deletion, the destination will then be unprotected too.
  87.      If anybody want to move a file, but still keep the file protected from deletion in the destination-drawer,
  88.      please tell me so...
  89.      Suggested by Fredrik Ismyren.
  90.  
  91. 1.0  First public release
  92.      Will check to see if the file is protected from deletion and let you decide if
  93.      if you want to un-protect it.
  94.      Will NOT delete the file if the copy was not successfull.
  95.